<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>天天向上代码生成器</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <style>
        body {
            padding-left: 15px;
        }
        form {
            /*margin: 20px;*/
            max-width: 1000px;
            font-size: 14px;
        }
        /*必填项前加红色星号*/
        .form-group.required .col-form-label:before {
            color: red;
            content: "*";
            position: absolute;
            margin-left: -8px;
        }
        .form-control {
            font-size: 14px;
        }
        .form-group {
            margin: 0.1rem;
        }
        .title {
            background-color: #007bff;
            color: white;
            font-family: 仿宋;
            font-size: 1.10rem;
            text-align: center;
            padding-left: 15px;
            padding-right: 15px;
            border-radius: .25rem;
        }
    </style>
    <script src="bootstrap/js/jquery.min.js"></script>
    <script src="bootstrap/js/bootstrap.min.js"></script>
    <script>
        $(function(){
            $("#springboot").load('springboot.html')

            // bootstrap tabs
            $("a[href^='#']").click(function () {
                $(this).tab('show')
                let tabId = $(this).attr('href')
                $(tabId).load(tabId.substr(1) + '.html')
                return false
            })

            $(function () {
                $("[name=url],[name=platformName]").change(function () {
                    let url = $("[name=url]").val()
                    let dbName = url.substring(url.lastIndexOf("/") + 1);
                    console.log(dbName);
                    let platformName = $("[name=platformName]").val();
                    $("[name=javaProjectPath]").val("C:\\" + (platformName == '' ? '' : platformName + "\\") +  dbName + "-service")
                })

            })
        })

    </script>

</head>
<body>

<ul class="nav nav-pills mb-3" id="pills-tab" role="tablist">
    <li class="nav-item" role="presentation">
        <a class="nav-link active" id="pills-home-tab" data-toggle="pill" href="#springboot" role="tab" aria-controls="springboot" aria-selected="true">springboot</a>
    </li>
    <li class="nav-item" role="presentation">
        <a class="nav-link" id="pills-contact-tab" data-toggle="pill" href="#springcloud" role="tab" aria-controls="springcloud" aria-selected="false">springcloud</a>
    </li>
    <li class="nav-item" role="presentation">
        <a class="nav-link" id="pills-readme-tab" data-toggle="pill" href="#readme" role="tab" aria-controls="readme" aria-selected="false">使用说明</a>
    </li>
</ul>
<div class="tab-content" id="pills-tabContent">
    <div class="tab-pane fade show active" id="springboot" role="tabpanel" aria-labelledby="pills-home-tab">111</div>
    <div class="tab-pane fade" id="springcloud" role="tabpanel" aria-labelledby="pills-contact-tab">开发中...</div>
    <div class="tab-pane fade" id="readme" role="tabpanel" aria-labelledby="pills-readme-tab">readme...</div>
</div>
</body>
</html>